.class public Lcom/esfile/screen/recorder/media/util/q;
.super Ljava/lang/Object;
.source "MediaConfigs.java"


# static fields
.field private static a:Landroid/content/SharedPreferences;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/esfile/screen/recorder/media/d;->a()Landroid/content/Context;

    move-result-object v0

    const-string v1, "sp_media_sdk"

    const/4 v2, 0x0

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    sput-object v0, Lcom/esfile/screen/recorder/media/util/q;->a:Landroid/content/SharedPreferences;

    return-void
.end method

.method public static a()[I
    .locals 3

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/media/util/q;->a:Landroid/content/SharedPreferences;

    const-string v1, "k_v_mrl_821"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/q;->a(Ljava/lang/String;)[I

    move-result-object v0

    return-object v0
.end method

.method private static a(Ljava/lang/String;)[I
    .locals 3

    .line 3
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "x"

    .line 4
    invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 5
    array-length v0, p0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    :try_start_0
    new-array v0, v1, [I

    const/4 v1, 0x0

    .line 6
    aget-object v2, p0, v1

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    aput v2, v0, v1

    const/4 v1, 0x1

    aget-object p0, p0, v1

    invoke-static {p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p0

    aput p0, v0, v1
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    :cond_0
    const/4 p0, 0x0

    return-object p0
.end method

.method public static b()[I
    .locals 3

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/media/util/q;->a:Landroid/content/SharedPreferences;

    const-string v1, "k_v_mrp_821"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/q;->a(Ljava/lang/String;)[I

    move-result-object v0

    return-object v0
.end method
